libxl: correct file open success check in libxl__device_pci_reset
authorMatthew Daley <mattjd@gmail.com>
Wed, 30 Oct 2013 07:51:51 +0000 (20:51 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 21:55:51 +0000 (21:55 +0000)
commit4b62556b575ef9b10449136b32282eb77a4ef7ac
tree63fbee6e01bd7dd37aba9a78e2f5fed3e465efab
parent5bc3a84608de002853048ea1f36c73fbb1304154
libxl: correct file open success check in libxl__device_pci_reset

It could, even if only in theory, be fd 0.

Coverity-ID: 1055895
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_pci.c